/* style.css */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f8f8f8;
    overflow: hidden;
    perspective: 1500px; /* 设置3D视角 */
}

.gallery {
    position: relative;
    width: 80%;
    max-width: 800px;
    overflow: hidden;
}

.photo-frame {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform-style: preserve-3d; /* 开启3D效果 */
    transform: rotateY(0deg);
    transition: transform 1s ease-in-out;
}

#photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1s ease-in-out, transform 1s ease;
}

.controls {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.control-btn {
    padding: 10px 20px;
    font-size: 18px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.control-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}
